package com.bestcem.xm.member.controller.v2.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Map;

/**
 * 联系人过滤参数校验
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/8/4
 */
@Getter
@Setter
public class FilterMembersParam {
    private String search;

    /**
     * 正则匹配列
     */
    private Map<String, String> regexTargets;

    @JsonProperty(value = "eq_search")
    private String eqSearch;

    private List<String> memberIds;

    @JsonProperty(value = "mtype")
    private Integer mType;

    private Integer page;

    private Integer rowsPerPage;

    private String sortBy;

    private Boolean descending;

    private Object condition;

    private String orgId;

    private String userId;

    /**
     * 分组id
     */
    @JsonProperty("group_id")
    private String groupId;

    /**
     * 是否排除总数
     */
    private boolean excludeCount;

    /**
     * 是否排除数据
     */
    private boolean excludeData;
    /**
     * 是否为超级管理员; 1: 是
     */
    private Integer superRole;

    /**
     * 高级管理员权限
     */
    private Integer isSenior;
}
